三个数组穷举组合成新的数据 List<string> Combin(List<List<string>> s) {
var temp = s[0];
for (int i = 1; i < s.Count; i )
{
temp = Multiplication(temp, s[i]);
}
return temp;
}
List<string> Multiplication(List<string> a, List<string> b)
{
List<string> result = new List<string>();
for (int i = 0; i < a.Count; i )
{
for (int j = 0; j < b.Count; j )
{
result.Add(a[i] "," b[j]);
}
}
return result;
}
评论